package com.msmall.community.diary.dao;

import java.util.List;

import com.msmall.base.dao.BaseDao;
import com.msmall.community.diary.model.Diary;
import com.msmall.community.diary.model.DiaryReply;

public interface DiaryDao extends BaseDao{

	/**
	 * 通过id查找日记的前一张日记,按ID排序，如果是第一张，跳到最后一张
	 */
	public Diary getDiaryPreByid(Long diaryid) throws Exception;
	/**
	 * 通过id查找照片的后一日记,按ID排序，如果是最后一张，跳到第一张
	 */
	public Diary getDiaryNextByid(Long diaryid) throws Exception;
	
	/**
	 * 获得日记的所有评论
	 */
	public List<DiaryReply> getReplysByDiaryid(Long diaryid)throws Exception;
}
